public class UnusualAdd {
    public int addAB(int A, int B) {
        // write code here
        //不能用正常+号计算，只能考虑位运算
        while (B != 0){
            int t = (A&B)<<1;
            A ^= B;
            B = t;
        }
        return A;
    }
}